<?php
class loginControl extends Control{
 public 	function index(){
	         $this->display();
		}
 public  function u_login(){
        $p=$_POST['code'];
        $_co=$_SESSION['code'];
        if(!$p==$_co){
        	$this->error('验证码错误');
        }
   if(!$this->rbac_user_login($_POST['username'],md5($_POST['passwor']),"admin")){
  	
  		$this->error("用户名秘密错误");
  	}
  		$this->go("index/index");
  	
  }

}

?>